package cn.stylefeng.guns.modular.gridsystem.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;

/**
 * 设备状态评估
 * @author ssy
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_device_status_assess")
public class BizDeviceStatusAssess extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 正常次数
     */
    @TableField("normal_number")
    private Integer normalNumber;

    /**
     * 故障次数
     */
    @TableField("error_number")
    private Integer errorNumber;


    /**
     * 时间
     */
    @TableField("assess_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date assessTime;

    /**
     * 设备ID
     */
    @TableField("device_id")
    private Integer deviceId;

    @TableField("type")
    private Integer type;

}
